package plantshop.controller.moves;

import java.io.Serializable;

import plantshop.model.Game;

public class PlantDragMove extends PlayerMove implements Serializable{
	private static final long serialVersionUID = -8466959319631746371L;
	private boolean whereStart; //true = front
	private int dispStart;
	private int locStart;
	private boolean whereEnd; //true = front
	private int dispEnd;
	private int locEnd;
	
	public PlantDragMove(boolean whereStart, int dispStart, int locStart, boolean whereEnd, int dispEnd, int locEnd){
		this.whereStart = whereStart;
		this.dispStart = dispStart;
		this.locStart = locStart;
		this.whereEnd = whereEnd;
		this.dispEnd = dispEnd;
		this.locEnd = locEnd;
	}
	
	@Override
	public void execute(Game game) {
		game.movePlant(whereStart, dispStart, locStart, whereEnd, dispEnd, locEnd);
	}

}
